package com.smag.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smag.common.core.domain.entity.FarmTech;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
* @author hzqhzq
* @description 针对表【farm_tech】的数据库操作Mapper
* @createDate 2023-03-31 10:19:04
* @Entity com.ruoyi.common.core.domain.entity.FarmTech
*/
public interface FarmTechMapper extends BaseMapper<FarmTech> {

    int updateTechAvatar(@Param("cropId") Long cropId,@Param("avatar") String avatar);
    @Select("select *from farm_tech where crop_id=#{cropId} ")
    FarmTech selectCropById(Long cropId);


}




